home *** CD-ROM | disk | FTP | other *** search
/ Champak 106 / Vol 106.iso / games / garfield.swf / scripts / frame_30 / PlaceObject2_660_105 / CLIPACTIONRECORD onClipEvent(load).as
Encoding:
Text File  |  2010-04-12  |  335 b   |  16 lines

  1. onClipEvent(load){
  2.    function change_life(life_num)
  3.    {
  4.       lives += life_num;
  5.       if(lives < 0)
  6.       {
  7.          _parent.score = _parent.bg_mov.global_pos;
  8.          lives = 0;
  9.          _parent.control_mov.lost();
  10.       }
  11.       this.gotoAndStop(lives + 1);
  12.    }
  13.    var lives = 6;
  14.    this.gotoAndStop(lives + 1);
  15. }
  16.